/**
 * JAVACC DEMO 1.0
 * @copy right iussoft company All rights reserved.
 * @Package com.iussoft.order.client
 */
package com.apache.portal.common.enums;

import com.apache.tools.StrUtil;

/**
 * description:  客户端方法标识枚举类
 * @author Hou Dayu 创建时间：2016-8-12
 */
public enum UserMethodEnum {

	login("U0001"), regUser("U0002"), editUser("U0003"), FindPwd("U0004"), editPwd("U0005"), SetUserPwd("U0006"), loginUser(
			"U9000"), logout("U0000"), userInfo("U0007"), isExist("isExist"), loginNoCode("U0008"), regUserMailCode(
			"U0009"), toIndex("gotoIndex"), sendPwd("sendCode"), userList("userList"), logModelList("logModelList"), logOperationList(
			"logOperationList"), viewLogDetail("viewLogDetail"), logExecute("logExecute"), UserDeault("U000"), deptInfo(
			"deptInfo"), configCopy("configCopy");

	private String name;

	private UserMethodEnum(String name) {
		this.name = name;
	}

	// 普通方法  
	public static UserMethodEnum getName(String name) {
		if (StrUtil.isNull(name))
			return UserDeault;
		for (UserMethodEnum c : UserMethodEnum.values()) {
			if (c.getName().equals(name)) {
				return c;
			}
		}
		return UserDeault;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
